//
//  MRCountry_FooterCollectionReusableView.m
//  Travel_World
//
//  Created by dllo on 15/10/15.
//  Copyright © 2015年 TLS. All rights reserved.
//

#import "MRCountry_FooterCollectionReusableView.h"

@implementation MRCountry_FooterCollectionReusableView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.label = [[UILabel alloc] initWithFrame:CGRectMake(20 * WID, 20 * HEI, 100 * WID, 30 * HEI)];
        self.label.text = @"超值自由行";
        [self addSubview:self.label];
        
        self.allButton = [UIButton buttonWithType:UIButtonTypeSystem];
        self.allButton.frame = CGRectMake(270 * WID, 20 * HEI, 85, 30);
        [self.allButton setTintColor:[UIColor grayColor]];
        [self.allButton setTitle:@"查看全部 >" forState:UIControlStateNormal];
        [self.allButton addTarget:self action:@selector(click) forControlEvents:UIControlEventTouchUpInside];
        [self addSubview:self.allButton];
        
        self.line = [[UIView alloc] initWithFrame:CGRectMake(20 * WID, 60 * HEI, 375 * WID - 20 * WID, 1)];
        self.line.backgroundColor = [UIColor grayColor];
        [self addSubview:self.line];
    }
    return self;
}

- (void)click
{
    // 通知中心
    
    [[NSNotificationCenter defaultCenter] postNotificationName:@"push" object:nil];
}

@end
